MailPoet\Newsletter\NewslettersRepository S

Total Complexity 47
Dependencies 26
Dependents 43
Total lines 664
Lines of code 517
Logical lines of code 141
Comment lines 68
Methods 23
Properties 2

Methods 23

Method Rating Maintainability Complexity Lines of code
bulkDelete()
A
32 9 122
getArchives()
A
43 7 49
getAnalytics()
S
43 3 48
getStandardNewsletterListWithMultipleStatuses()
S
53 3 23
getNotificationHistoryItems()
S
56 3 18
bulkRestore()
S
50 2 32
bulkTrash()
S
50 2 30
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedOrInvalidTask()
S
56 1 19
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findDraftByTypes()
S
61 1 14
getStandardNewsletterList()
S
61 1 14
findActiveByTypes()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
setAsCorrupt()
S
74 1 5
__construct()
S
73 1 5
getCorruptNewsletters()
S
78 1 3
getEntityClassName()
S
82 1 3
fetchChildrenIds()
S
67 1 8